package huu.phong.sshchecker;

public class SSHHost {
	
	public String host;
	
	public String username;
	
	public String password;
	
	public String toString() {
		return String.format("%s|%s|%s", host, username, password);
	}
	
	public int hashCode() {
		return host.hashCode() ^ username.hashCode() ^ password.hashCode();
	}
	
	public boolean equals(Object obj) {
		boolean ret = false;
		if (obj instanceof SSHHost) {
			SSHHost that = (SSHHost) obj;
			if (that.host.equals(host)) ret = true;
		}
		return ret;
	}
}
